import store from '../index'
import { defineStore } from 'pinia'

export const userApp = defineStore('user', {
  state: () => {
    return {
      userInfo: {},
      token: ''
    }
  },
  actions: {
    setUserInfo(userInfo) {
      this.userInfo = userInfo
    },
    setToken(token) {
      this.token = token
    }
  }
})
